﻿
using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;

using System.Windows.Shapes;
using Sqo;

namespace Ivvy_Silverlight
{


    /// [Generated Jan 31 2011]

    public partial class i_Verb : ISqoDataObject
    {

        #region "private fields"

        private int _Verb_ID;
        private string _Verb_Name;
        private bool _Disabled;
        private string _GUID;

        #endregion

        #region "public properties"

        public int Verb_ID
        {
            get { return _Verb_ID; }
            set { _Verb_ID = value; }
        }
        public string Verb_Name
        {
            get { return _Verb_Name; }
            set { _Verb_Name = value; }
        }
        public bool Disabled
        {
            get { return _Disabled; }
            set { _Disabled = value; }
        }
        public string GUID
        {
            get { return _GUID; }
            set { _GUID = value; }
        }

        #endregion

        #region "ISqoDataObject"
        object ISqoDataObject.GetValue(System.Reflection.FieldInfo field) { return field.GetValue(this); }
        void ISqoDataObject.SetValue(System.Reflection.FieldInfo field, object value) { field.SetValue(this, value); }

        int ISqoDataObject.OID { get { return Verb_ID; } set { } }
        #endregion

        #region "MAPPER"
        public static Ivvy_Silverlight.i_Verb Convert(i7SR.Verb od_Verb)
        {
            return new Ivvy_Silverlight.i_Verb()
            {

                Verb_ID = Utils.IsNull(od_Verb.Verb_ID),
                Verb_Name = Utils.IsNull(od_Verb.Verb1),
                Disabled = Utils.IsNull(od_Verb.Disabled),
                GUID = Utils.IsNull(od_Verb.GUID),

            };
        }
        #endregion


        #region "REVERSEMAPPER"
        public static Ivvy_Silverlight.i7SR.Verb ReverseConvert(i_Verb od_Verb)
        {
            return new Ivvy_Silverlight.i7SR.Verb()
            {

                Verb_ID = Utils.ReverseIsNull(od_Verb.Verb_ID).Value,
                Verb1 = Utils.ReverseIsNull(od_Verb.Verb_Name),
                Disabled = Utils.ReverseIsNull(od_Verb.Disabled),
                GUID = Utils.ReverseIsNull(od_Verb.GUID),

            };
        }
        #endregion

    }
}

